package pl.iachoo.ctl.tabory.dao.hibernate.services;

import org.apache.log4j.Logger;

import pl.iachoo.ctl.tabory.dao.hibernate.interfaces.ICompositionService;
import pl.iachoo.ctl.tabory.dao.hibernate.interfaces.ILogonService;
import pl.iachoo.ctl.tabory.dao.hibernate.interfaces.IUserService;
import pl.iachoo.ctl.tabory.dao.hibernate.interfaces.IVagonService;

public class ServiceManager {

	private final static Logger log = Logger.getLogger(ServiceManager.class);

	private ServiceManager() {

	}

	public static ILogonService getLogonService() {
		log.info("Calling LogonServiceImpl.");
		return LogonServiceImpl.getInstance();
	}

	public static IUserService getUserService() {
		log.info("Calling UserServiceImpl.");
		return UserServiceImpl.getInstance();
	}

	public static IVagonService getVagonService() {
		log.info("Calling VagonServiceImpl.");
		return VagonServiceImpl.getInstance();
	}

	public static ICompositionService getCompositionService() {
		log.info("Calling CompositionServiceImpl.");
		return CompositionServiceImpl.getInstance();
	}

}
